<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="node_modules/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
    {{message}}
    <h2>
        {{school.name}}
        {{school.phone}}
    </h2>
    <ul>
        <li>
            {{address[0]}}
            {{address[1]}}
            {{address[2]}}
        </li>
    </ul>
</div>
<!--Vue中用到的数据可以定义到data中
    data中可以写复杂的数据
    渲染复杂数据需要遵循js语法
-->
<script>
    var app=new Vue({
        el:"#app",
        data:
            {
                message:"你好 月月",
                school:{
                    name:"月月",
                    phone:"123456"
                },
                address:["仙桃","北京","武汉"]
            }
    })
</script>
</body>
</html>